package thethree;
interface biology
{
    String getBreathe();
}
interface animal
{
    char getSex();
    String getEatway();
}
interface people
{
    String getThink();
    String getStudy();
}
interface show
{
    void showInfor();
}
class Biology implements biology, show {
    String breathe;

    Biology(String breathe) {
        this.breathe = breathe;
    }

    public String getBreathe() {
        return breathe;
    }

    public void showInfor() {
        System.out.println("生物的呼吸方式：" + getBreathe());
    }
}
class Animal implements animal, show {

    char Sex;
    String Eatway;
    public Animal(char Sex,String Eatway)
    {
        this.Eatway=Eatway;
        this.Sex=Sex;
    }
    
    public char getSex() {
        return Sex;
    }
    public String getEatway()
    {
        return Eatway;
    }
    public void showInfor() {
        System.out.println("动物的性别："+getSex()+"动物的捕食方法："+getEatway());
    }
}
class People implements people, show {
    String think;
    String study;
    People(String think,String study)
    {
        this.think=think;
        this.study=study;
    }
    public String getThink()
    {
        return think;
    }
    public String getStudy()
    {
        return study;
    }
    public void showInfor()
    {
        System.out.println("人的思想："+getThink()+"人的学习方法："+getThink());
    }
}
public class world {
    public static void main(String[] args) {
        System.out.println("123");
        Biology B=new Biology("有氧和无氧");
        B.showInfor();
        Animal A=new Animal('磁',"嗅觉听觉等");
        A.showInfor();
        People P=new People("独立思考","独立学习");
        P.showInfor();

    }
}
